{% extends 'accounts/base.html' %}

{% block title %}删除角色{% endblock %}

{% block content %}
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
    <h1 class="h2">删除角色</h1>
</div>

<div class="row">
    <div class="col-md-8">
        <div class="card">
            <div class="card-body">
                <p>确定要删除角色 <strong>{{ role.name }}</strong> 吗？此操作无法撤销。</p>
                
                <form method="post">
                    {% csrf_token %}
                    <div class="mb-3">
                        <button type="submit" class="btn btn-danger">
                            <i class="fas fa-trash"></i> 确认删除
                        </button>
                        <a href="{% url 'accounts:role_list' %}" class="btn btn-secondary">
                            <i class="fas fa-arrow-left"></i> 取消
                        </a>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
{% endblock %}